﻿using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class MemberLevelBLL : IMemberLevelBLL
    {
        public MemberLevelBLL(IMemberDAL<MemberLevelModel>dal)
        {
            Dal = dal;
        }

        public IMemberDAL<MemberLevelModel> Dal { get; }

        public Task<int> AddMemberLevel(MemberLevelModel level)
        {
            return Dal.AddMemberAsync(level);
        }

        public List<MemberLevelModel> GetLevelMembers()
        {
            return Dal.GetMembersAsync().ToList();
        }
    }
}
